From: Florian Müllner Date: Tue, 20 Aug 2019 02:25:24 +0000 (+0200) Subject: overview: Minor cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~112 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ce63d21dcc141912232185b1c90de9a88a6ddf02;p=gnome-shell.git overview: Minor cleanup Safe one indentation level by combining conditions. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 1325eff6b..49907b9d2 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -481,15 +481,13 @@ var Overview = class { if (this._shown) { let shouldBeModal = !this._inXdndDrag; - if (shouldBeModal) { - if (!this._modal) { - if (Main.pushModal(this._overview, - { actionMode: Shell.ActionMode.OVERVIEW })) { - this._modal = true; - } else { - this.hide(); - return false; - } + if (shouldBeModal && !this._modal) { + let actionMode = Shell.ActionMode.OVERVIEW; + if (Main.pushModal(this._overview, { actionMode })) { + this._modal = true; + } else { + this.hide(); + return false; } } } else {